import { Vec3 } from "cc";
import { ecs } from "db://app-game/libs/ecs/ECS";

/** 角色移动组件 */
@ecs.register("RoleMoveModel")
export class RoleMoveModelComp extends ecs.Comp {
  /** 移动速度 */
  velocity: Vec3 = new Vec3(0, 0);
  /** 角度 */
  angle: number = 0;
  reset(entity: ecs.Entity): void {
    this.velocity = new Vec3(0, 0);
    this.angle = 0;
  }
}
